<template>
  <div id="top">
    <daichuliqianyue @subFn="seaFn" :sea="list"></daichuliqianyue>
    <br>
    <table1 :sea="list"></table1>
  </div>
</template>

<script>
import daichuliqianyue from '../../components/SignModel/daichuliqianyue.vue'
import table1 from '../../components/SignModel/table1.vue'
import axios from 'axios'
axios.defaults.baseURL="http://localhost:8080"
export default {
 components: {
     daichuliqianyue,
     table1
 },

 created () {
   this.queryList();
   document.querySelector('body').setAttribute('style', 'background-color:#F2F7FB')
  
 }, 
 data () {
    return {
        list:[]
    }
},
 methods: {
   //搜索
   seaFn(value,value1,value2,value3,value5,input2){
     axios({
        url: "/sign/getSignList",
        method: "GET",
        params:{
          contract_state:value,
          sign_organization:value1,
          sign_team:value2,
          serve_page:value3,
          user_name:input2,
          end_time:value5[0],
          end_time:value5[1],
        }
      }).then((res) => {
        this.list = res.data; //把值传到list里面
        
      });
   },
   queryList() {
      axios({
        url: "/sign/getSignList",
        method: "GET",
      }).then((res) => {
        this.list = res.data; //把值传到list里面
      });
    },
 }
}
</script>

<style>
*{
    padding: 0;
    margin: 0;
}
#top{
    width: 1150px;
    height: 2000px;
     background: white;
    margin: 20px auto;
    position: relative;
}

</style>